﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.MaterialPDVMs
{
    public partial class MaterialPDBatchVM : BaseBatchVM<MaterialPD, MaterialPD_BatchEdit>
    {
        public MaterialPDBatchVM()
        {
            ListVM = new MaterialPDListVM();
            LinkedVM = new MaterialPD_BatchEdit();
        }

    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MaterialPD_BatchEdit : BaseVM
    {
        [Display(Name = "产线号")]
        public String LineCode { get; set; }
        [Display(Name = "工序号")]
        public String OperationCode { get; set; }
        [Display(Name = "工序名称")]
        public String OperationName { get; set; }
        [Display(Name = "SN")]
        public String CurrentSN { get; set; }
        [Display(Name = "同工位物料SN")]
        public String AnotherSN { get; set; }
        [Display(Name = "生产数据名")]
        public String PDname { get; set; }
        [Display(Name = "生产数据编码")]
        public String PDcode { get; set; }
        [Display(Name = "生产数据结果")]
        public String result { get; set; }
        [Display(Name = "生产数据值")]
        public String PDdata { get; set; }
        [Display(Name = "所属工单")]
        public String orderCode { get; set; }
        [Display(Name = "所属排程")]
        public String schduleCode { get; set; }
        [Display(Name = "上传时间")]
        public String uploadTime { get; set; }
        [Display(Name = "上传工厂mes")]
        public Boolean? uploadFlag { get; set; }

        protected override void InitVM()
        {
        }

    }

}
